<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:forEach items="${pageInfo.list}" var="blog">
    <li class="index_arc_item ${empty blog.cover?'no_pic':''}">
        <c:if test="${not empty blog.cover}">
            <a href="<%=request.getContextPath()%>/blog/view.html?id=${blog.id}" class="pic">
                <img class="lazyload" data-original="${blog.cover}" alt="${blog.title}">
            </a>
        </c:if>
        <h4 class="title"><a href="<%=request.getContextPath()%>/blog/view.html?id=${blog.id}">${blog.title}</a>
        </h4>
        <div class="date_hits">
            <span>${blog.user.nickname}</span>
            <span><fmt:formatDate value="${blog.createdDate}" pattern="yyyy-MM-dd"/></span>
            <span><a
                    href="<%=request.getContextPath()%>/blog/view.html?id=${blog.id}">${blog.category.name}</a></span>
            <p class="hits"><i class="Hui-iconfont" title="点击量">&#xe6c1;</i> ${blog.viewCount} °</p>
            <p class="commonts"><i class="Hui-iconfont" title="点击量">&#xe622;</i> <span
                    id="sourceId::105" class="cy_cmt_count">${blog.replyCount}</span></p>
        </div>
        <div class="desc">${blog.summary}</div>
    </li>
</c:forEach>
<span id="hasNextPage" style="display:none">${empty pageInfo.hasNextPage? true:pageInfo.hasNextPage}</span>